home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / kgdb-4.5 / ds3100.md / gdb / kgdb_ptrace.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-16  |  1.2 KB  |  50 lines

  1. /*
  2.  * ptrace.c --
  3.  *
  4.  *    Routines for creating a Unix like debugger interface to Sprite.
  5.  *
  6.  * Copyright 1988 Regents of the University of California
  7.  * Permission to use, copy, modify, and distribute this
  8.  * software and its documentation for any purpose and without
  9.  * fee is hereby granted, provided that the above copyright
  10.  * notice appear in all copies.  The University of California
  11.  * makes no representations about the suitability of this
  12.  * software for any purpose.  It is provided "as is" without
  13.  * express or implied warranty.
  14.  *
  15.  * $Header: /sprite/src/kernel/mach/spur.md/RCS/machConfig.c,v 1.2 88/11/11 15:3
  16. 6:43 mendel Exp $ SPRITE (Berkeley)
  17.  */
  18.  
  19. #include "machine/sys/ptrace.h"
  20. #include <errno.h>
  21. #include <signal.h>
  22.  
  23. extern int errno;
  24.  
  25. /* 
  26.  *----------------------------------------------------------------------
  27.  *
  28.  * ptrace --
  29.  *
  30.  *    Emulate Unix ptrace system call.
  31.  *
  32.  * Results:
  33.  *    An integer.
  34.  *
  35.  * Side effects:
  36.  *
  37.  *----------------------------------------------------------------------
  38.  */
  39.  
  40. ptrace (request, pid, addr, data, addr2)
  41.      int request;    /* Data */
  42.      int pid;            /* Process id of debugee. */
  43.      char *addr;        
  44.      int data;
  45.      char *addr2;
  46. {
  47.   errno = EINVAL;
  48.   return -1;
  49. }
  50.